{% extends "base.html" %}
{% block title %}Home{% endblock %}
{% block content %}
<h2>Recent Polls</h2>
<div>
{% for r in recent %}
  <div class="poll">
    <dl>
      <dt>Question</dt>
      <dd><span class="question">{{ r.question|escape }}</span></dd>
      <dt>Answers</dt>
      <dd><span class="answers">
        {{ r.answers|join:", "|escape }}
      </dd>
    </dl>
    <span class="q-date">{{ r.created|date }}</span><br/>
    <a href="/polls/{{ r.key.name }}">Take the poll!</a>
  </div>
{% endfor %}
  <hr/>
  {% if start %}
  <div>
     <p><a href="/?s={{ start }}">Next...</a></p>
  </div>
  {% endif %}
  <hr/>
  <div>
     <p><a href="/polls">More...</a></p>
  </div>
</div>
{% endblock %}
